Skip to content
Browse files

Move class-level methods into separate modules

This is so that class methods are not also instance methods and
vice-versa
  • Loading branch information...
1 parent b66110c commit 3b1c60e8c9abd31737e9be7cba0c51cf7a604860 @thomsbg thomsbg committed with Aug 9, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/her/model/orm.rb
View
5 lib/her/model/orm.rb
@@ -131,10 +131,11 @@ def to_params # {{{
private
- def writer_method_defined?(key)
+ # @private
+ def writer_method_defined?(key) # {{{
self.class.instance_methods.include?("#{key}=".to_sym) || # Ruby 1.9
self.class.instance_methods.include?("#{key}=") # Ruby 1.8
- end
+ end # }}}
module ClassMethods
# Initialize a collection of resources with raw data from an HTTP request

0 comments on commit 3b1c60e

Please sign in to comment.
Something went wrong with that request. Please try again.