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

Add a way to declare which model attributes are editable #150

Open
tfe opened this issue Jan 29, 2015 · 1 comment
Open

Add a way to declare which model attributes are editable #150

tfe opened this issue Jan 29, 2015 · 1 comment

Comments

@tfe
Copy link
Contributor

tfe commented Jan 29, 2015

As noted in a todo in Upmin::Attribute. Currently the editable? method just excludes common fields like ID, the timestamp attributes, etc. with a note to add a way to customize later.

@jdurand
Copy link
Contributor

jdurand commented Apr 17, 2015

That's a good idea. Note that I just added a way to specify different fields for the create/update vs. the index views :

attributes :id, :name, :some_index_field
form_attributes :id, :name, :some_form_field

We could add something like

readonly_attribute :some_readonly_field
# or
readonly_attributes :id, :some_readonly_field, :created_at, :updated_at

I'll leave this opened for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants