active_model_serializers

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

Ruby

ActiveModel::Serializer implementation and Rails hooks

ActiveModelSerializers::Logging::Macros#notify

Simple notify method that wraps up +name+
in a dummy method. It notifies on with the +callback_name+ notifier on
each call to the dummy method, telling what the current serializer and adapter
are being rendered.
Adapted from:
  https://github.com/rubygems/rubygems/blob/cb28f5e991/lib/rubygems/deprecate.rb

Source | Google | Stack overflow

Edit

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

cd active_model_serializers

open lib/active_model_serializers/logging.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveModelSerializers--Logging--Macros-notify-for-pr


# Commit to git

git add lib/active_model_serializers/logging.rbgit commit -m "better docs for ActiveModelSerializers::Logging::Macros#notify"


# 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--Logging--Macros-notify-for-pr

hub pull-request


# Celebrate!