Sha256: c9367d0e44b9dfb94aabd1986f23cc38b3c07feb906cb15a4793727df47aae4a
Contents?: true
Size: 273 Bytes
Versions: 2
Compression:
Stored size: 273 Bytes
Contents
module CrudActions module ActionsHelper def index_helper(resource_name, options) instance_variable_set("@#{ resource_name.pluralize }", self.class.instance_variable_get('@resource_class').includes(options[:includes]).order(options[:order])) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crud_actions-0.0.2 | lib/crud_actions/actions_helper.rb |
crud_actions-0.0.1 | lib/crud_actions/actions_helper.rb |