Sha256: 44f87c86a0d899394ddabc3bd845c1321b7f1283f5ed2a6ecc31e003e1ca2412

Contents?: true

Size: 639 Bytes

Versions: 11

Compression:

Stored size: 639 Bytes

Contents

# Following code takes care of providing a nice error
# message to users who are using old API
module AdminData

  class Config
    cattr_accessor :setting

    def self.set=(input = {})

msg=<<EOF

AdminData API has changed in version 1.1 .

The changes are very minor.

Instead of

AdminData::Config.set = {
 :find_conditions => ....
}

Now you need to write in following style

AdminData.config do |config|
 config.find_conditions = ...
end

Please refer to documentation at
https://github.com/neerajdotname/admin_data/wiki/Customizing-admin_data-for-a-Rails-3-application
for more information.

EOF

      raise msg
    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
the_jobbook_admin_data-1.3.0a lib/admin_data/config.rb
admin_data-1.2.1 lib/admin_data/config.rb
admin_data-1.2.0 lib/admin_data/config.rb
admin_data-1.1.16 lib/admin_data/config.rb
admin_data-1.1.15 lib/admin_data/config.rb
admin_data-1.1.14 lib/admin_data/config.rb
admin_data-1.1.13 lib/admin_data/config.rb
admin_data-1.1.12 lib/admin_data/config.rb
admin_data-1.1.11 lib/admin_data/config.rb
admin_data-1.1.10 lib/admin_data/config.rb
admin_data-1.1.9 lib/admin_data/config.rb