Module: ActiveCrudify
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_crudify.rb,
lib/active_crudify/responder.rb,
lib/active_crudify/hook_methods.rb,
lib/active_crudify/class_methods.rb
Defined Under Namespace
Modules: ClassMethods, HookMethods Classes: Engine, Responder
Class Method Summary collapse
Class Method Details
.default_options(model_name) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/active_crudify.rb', line 19 def self.(model_name) singular_name = model_name.to_s plural_name = singular_name.pluralize class_name = singular_name.camelize { :singular_name => singular_name, :plural_name => plural_name, :class_name => class_name, :paginate => true, :order_by => "created_at DESC", :conditions => {}, :namespace => nil, :log => Rails.env == 'development' } end |