8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using this in a rails app. How would I configure the default tp in a Rails initializer?
For example, I'd like to make headers always lowercase via:
tp.set :capitalize_headers, false
But I don't want to have to do that every time. Do I need to make my own wrapper?
The text was updated successfully, but these errors were encountered:
Came up with this:
Toco::Application.configure do config.after_initialize do TablePrintConfigurator.set_defaults end end
class TablePrintConfigurator def self.set_defaults tp.set Transaction, :id, :description, :amount, :total_cost, :active, :charge_id, :charge_type, :invoice_id, :multiplier, :transaction_type_id, :trx_date, :created_at, :updated_at ... end end
Sorry, something went wrong.
No branches or pull requests
Using this in a rails app. How would I configure the default tp in a Rails initializer?
For example, I'd like to make headers always lowercase via:
But I don't want to have to do that every time. Do I need to make my own wrapper?
The text was updated successfully, but these errors were encountered: