README.md in acts_as_api-1.0.0 vs README.md in acts_as_api-1.0.1
- old
+ new
@@ -21,10 +21,10 @@
template.add :first_name
template.add :age
end
# will render json: { "user": { "first_name": "John", "age": 26 } }
- api_accessible :private, :extend => :public do |template|
+ api_accessible :private, extend: :public do |template|
template.add :last_name
template.add :email
end
# will render json: { "user": { "first_name": "John", "last_name": "Doe", "age": 26, "email": "john@example.org" } }