Skip to content

Commit

Permalink
instance_methods returns strings in ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
thomsbg authored and remi committed Aug 27, 2012
1 parent dbd9fed commit 2753e25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/her/model/orm.rb
Expand Up @@ -132,7 +132,8 @@ def to_params # {{{
private

def writer_method_defined?(key)
self.class.instance_methods.include? "#{key}=".to_sym
self.class.instance_methods.include?("#{key}=".to_sym) || # Ruby 1.9
self.class.instance_methods.include?("#{key}=") # Ruby 1.8
end

module ClassMethods
Expand Down

0 comments on commit 2753e25

Please sign in to comment.