Sha256: 1f73b7d2af07a29a3ce4377f96b21bab5b2c4cf4aa963f4fc2824dec0dc7bf49

Contents?: true

Size: 559 Bytes

Versions: 9

Compression:

Stored size: 559 Bytes

Contents

module Rao
  module Component
    module Configuration
      def configure
        yield self
      end

      mattr_accessor(:table_default_timestamp_format) { nil }
      mattr_accessor(:table_default_date_format) { nil }
      mattr_accessor(:image_variant_options) {
        {
          collection: { resize: "160x120" },
          resource:   { resize: "320x240" }
        }
      }
      mattr_accessor(:batch_actions_default_actions) do
        -> {
          { destroy_many: @view.url_for(action: :destroy_many) }
        }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rao-component-0.0.52.pre lib/rao/component/configuration.rb
rao-component-0.0.51.pre lib/rao/component/configuration.rb
rao-component-0.0.50.pre lib/rao/component/configuration.rb
rao-component-0.0.49.pre lib/rao/component/configuration.rb
rao-component-0.0.48.pre lib/rao/component/configuration.rb
rao-component-0.0.47.pre lib/rao/component/configuration.rb
rao-component-0.0.46.pre lib/rao/component/configuration.rb
rao-component-0.0.45.pre lib/rao/component/configuration.rb
rao-component-0.0.44.pre lib/rao/component/configuration.rb