Sha256: 59d658c9a3729245d537b553cdb886dea6800bab8682d511fe8a1a2602cf048d

Contents?: true

Size: 301 Bytes

Versions: 16

Compression:

Stored size: 301 Bytes

Contents

module Administrate
  class CustomDashboard
    include Administrate

    class << self
      def resource_name(_opts)
        named_resource.pluralize.titleize
      end

      def resource(resource_name)
        define_singleton_method(:named_resource) { resource_name }
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
administrate-1.0.0.beta2 lib/administrate/custom_dashboard.rb
administrate-1.0.0.beta1 lib/administrate/custom_dashboard.rb
administrate-0.20.1 lib/administrate/custom_dashboard.rb
administrate-0.20.0 lib/administrate/custom_dashboard.rb
administrate-0.19.0 lib/administrate/custom_dashboard.rb
administrate-0.18.0 lib/administrate/custom_dashboard.rb
administrate-0.17.0 lib/administrate/custom_dashboard.rb
administrate-0.16.0 lib/administrate/custom_dashboard.rb
administrate-0.15.0 lib/administrate/custom_dashboard.rb
administrate-0.14.0 lib/administrate/custom_dashboard.rb
viniBaxterDesk-22.0.0 lib/administrate/custom_dashboard.rb
viniBaxterDesk-0.21.0 lib/administrate/custom_dashboard.rb
viniBaxterDesk-0.20.0 lib/administrate/custom_dashboard.rb
viniBaxterDesk-0.14.0 lib/administrate/custom_dashboard.rb
viniBaxterDesk-0.13.2 lib/administrate/custom_dashboard.rb
viniBaxterDesk-0.13.1 lib/administrate/custom_dashboard.rb