Sha256: 1b0a725b0aea9dc64d0c512fd3d015945920a1a8d5fb672b6f6c3ea3e19f519e

Contents?: true

Size: 838 Bytes

Versions: 15

Compression:

Stored size: 838 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 :action_after_save
    @@action_after_save = "edit"

    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 = 15

    mattr_accessor :sortable
    @@sortable = true

    mattr_accessor :start_year
    @@start_year = nil

    def self.method_missing(*args)
      nil
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
typus-3.0.12 lib/typus/resources.rb
typus-3.0.11 lib/typus/resources.rb
typus-3.0.11.rc5 lib/typus/resources.rb
typus-3.0.11.rc4 lib/typus/resources.rb
typus-3.0.11.rc3 lib/typus/resources.rb
typus-3.1.0.rc6 lib/typus/resources.rb
typus-3.1.0.rc5 lib/typus/resources.rb
typus-3.1.0.rc4 lib/typus/resources.rb
typus-3.1.0.rc3 lib/typus/resources.rb
typus-3.1.0.rc2 lib/typus/resources.rb
typus-3.0.11.rc2 lib/typus/resources.rb
typus-3.0.11.rc1 lib/typus/resources.rb
typus-3.1.0.rc1 lib/typus/resources.rb
typus-3.0.10 lib/typus/resources.rb
typus-3.0.9 lib/typus/resources.rb