Sha256: 938fba6b05b5727612e6fd5e93a5404ea2cfd2338a0027d5d1a3300e34ce9647

Contents?: true

Size: 766 Bytes

Versions: 7

Compression:

Stored size: 766 Bytes

Contents

module Typus
  module Resources

    ##
    # Setup Typus::Resources:
    #
    #     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 :minute_step
    @@minute_step = 5

    mattr_accessor :only_user_items
    @@only_user_items = false

    mattr_accessor :per_page
    @@per_page = 25

    mattr_accessor :sortable
    @@sortable = true

    mattr_accessor :start_year
    @@start_year = nil

    def self.method_missing(*args)
      nil
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typus-3.1.0.rc18 lib/typus/resources.rb
typus-3.1.0.rc17 lib/typus/resources.rb
typus-3.1.0.rc16 lib/typus/resources.rb
typus-3.1.0.rc15 lib/typus/resources.rb
typus-3.1.0.rc14 lib/typus/resources.rb
typus-3.1.0.rc13 lib/typus/resources.rb
typus-3.1.0.rc12 lib/typus/resources.rb