lib/administrate/field/base.rb in administrate-0.7.0 vs lib/administrate/field/base.rb in administrate-0.8.0

- old
+ new

@@ -18,10 +18,11 @@ def initialize(attribute, data, page, options = {}) @attribute = attribute @data = data @page = page + @resource = options.delete(:resource) @options = options end def self.permitted_attribute(attr) attr @@ -37,10 +38,10 @@ def to_partial_path "/fields/#{self.class.field_type}/#{page}" end - attr_reader :attribute, :data, :page + attr_reader :attribute, :data, :page, :resource protected attr_reader :options