Sha256: fb60b92b952ffde65df46ff3842608babc990307bd2c1d5f64df38ac73b33bb4
Contents?: true
Size: 599 Bytes
Versions: 7
Compression:
Stored size: 599 Bytes
Contents
module Rao module ResourcesController module Configuration def configure yield self end mattr_accessor(:resources_controller_base_class_name) do "::ApplicationController" end mattr_accessor(:pagination_per_page_default) do 25 end mattr_accessor(:label_for_resource_proc) do lambda do |resource| [:human, :title, :name, :to_s].each do |method_name| next unless resource.respond_to?(method_name) return resource.send(method_name) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems