active_model_serializers

https://github.com/rails-api/active_model_serializers

Ruby

ActiveModel::Serializer implementation and Rails hooks

ActiveModelSerializers::Model#updated_at=

NOTE that +updated_at+ isn't included in +attribute_names+,
which means it won't show up in +attributes+ unless a subclass has
either <tt>attributes :updated_at</tt> which will redefine the methods
or <tt>attribute_names << :updated_at</tt>.

Source | Google | Stack overflow

Edit

git clone [email protected]:rails-api/active_model_serializers.git

cd active_model_serializers

open lib/active_model_serializers/model.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveModelSerializers--Model-updated_at--for-pr


# Commit to git

git add lib/active_model_serializers/model.rbgit commit -m "better docs for ActiveModelSerializers::Model#updated_at="


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActiveModelSerializers--Model-updated_at--for-pr

hub pull-request


# Celebrate!