This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ENV['RAILS_ENV'] = ARGV[0] || 'production' | |
| DIR = File.dirname(__FILE__) | |
| require DIR + '/config/environment' | |
| Migration::FillDemoPriceChanges.for |
Me imagino algo así:
Ledgerizer.setup do |conf|
conf.tenant(:subsidiary, currency: :clp) do
conf.liability :user_funds_custody, currencies: [:clp, :btc] # estas son las currencies que acepta la cuenta
conf.asset :user_funds_to_confirm, currencies: [:clp, :btc]
conf.entry :user_deposit, document: :ledger_line do
conf.debit account: :user_funds_to_confirm, accountable: :accountPara modularizar el monolito, estamos usando engines de Rails.
Para facilitar la tarea de crear nuevos engines y gemas, usamos Gemaker de la siguiente manera:
bin/gemaker new nombre_engineOlderNewer