From 92a6cf0acd5615730b15b9bd1aac819562696262 Mon Sep 17 00:00:00 2001 From: Oscar Del Ben Date: Sat, 14 Apr 2012 10:35:44 +0300 Subject: Improve example in initializer --- activemodel/lib/active_model/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib/active_model') diff --git a/activemodel/lib/active_model/model.rb b/activemodel/lib/active_model/model.rb index 6825fdc653..7323714ba8 100644 --- a/activemodel/lib/active_model/model.rb +++ b/activemodel/lib/active_model/model.rb @@ -42,7 +42,7 @@ module ActiveModel # include ActiveModel::Model # attr_accessor :id, :name, :omg # - # def initialize(attributes) + # def initialize(attributes={}) # super # @omg ||= true # end -- cgit v1.2.3