Sha256: 8eb7384a7d3bf175ce828cd64377ef929e2a48b0d34824447623ed6501d96461
Contents?: true
Size: 995 Bytes
Versions: 8
Compression:
Stored size: 995 Bytes
Contents
module Typus module Resources # Setup Typus::Resources. This should be run from an initializer. # # Typus::Resources.setup do |config| # config.default_action_on_item = "index" # end # def self.setup yield self end mattr_accessor :default_action_on_item @@default_action_on_item = "edit" mattr_accessor :end_year @@end_year = nil mattr_accessor :form_rows @@form_rows = 15 mattr_accessor :action_after_save @@action_after_save = "edit" mattr_accessor :minute_step @@minute_step = 5 mattr_accessor :human_nil @@human_nil = "nil" mattr_accessor :only_user_items @@only_user_items = false mattr_accessor :per_page @@per_page = 15 mattr_accessor :start_year @@start_year = nil # Sets a has and belongs to many limit for the dropdowns. mattr_accessor :habtm_limit @@habtm_limit = 500 def self.method_missing(*args) nil end end end
Version data entries
8 entries across 8 versions & 1 rubygems