Sha256: e2fc8e18a651a4a634d519d9cf6dd6cabac0b01770ac5aa884663897d79ddc7b

Contents?: true

Size: 989 Bytes

Versions: 13

Compression:

Stored size: 989 Bytes

Contents

module Typus
  module Resources

    # Usage:
    #
    #     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 = nil

    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

    mattr_accessor :hide_from_sidebar
    @@hide_from_sidebar = false

    mattr_accessor :hide_from_dashboard
    @@hide_from_dashboard = false

    mattr_accessor :export
    @@export = ""

    mattr_accessor :counters
    @@counters = false

    def self.method_missing(*args)
      nil
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
brainsome_typus-4.0.0.beta13 lib/typus/resources.rb
brainsome_typus-4.0.0.beta12 lib/typus/resources.rb
brainsome_typus-4.0.0.beta11 lib/typus/resources.rb
brainsome_typus-4.0.0.beta10 lib/typus/resources.rb
brainsome_typus-4.0.0.beta9 lib/typus/resources.rb
brainsome_typus-4.0.0.beta8 lib/typus/resources.rb
brainsome_typus-4.0.0.beta7 lib/typus/resources.rb
brainsome_typus-4.0.0.beta6 lib/typus/resources.rb
brainsome_typus-4.0.0.beta5 lib/typus/resources.rb
brainsome_typus-4.0.0.beta4 lib/typus/resources.rb
brainsome_typus-4.0.0.beta3 lib/typus/resources.rb
brainsome_typus-4.0.0.beta2 lib/typus/resources.rb
brainsome_typus-4.0.0.beta1 lib/typus/resources.rb