Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Field#options public, enabling access from templates #1513

Merged
merged 1 commit into from Feb 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/administrate/field/base.rb
Expand Up @@ -40,12 +40,10 @@ def to_partial_path
"/fields/#{self.class.field_type}/#{page}"
end

attr_reader :attribute, :data, :page, :resource
attr_reader :attribute, :data, :options, :page, :resource

protected

attr_reader :options

def self.field_type
to_s.split("::").last.underscore
end
Expand Down