Module: Picasa::User::ClassMethods
- Defined in:
- lib/picasa/user.rb
Overview
Class methods that will be included in the class that include this module.
Instance Method Summary collapse
-
#has_many_picasa_albums(params) ⇒ Object
Method used to tell the gem what is the class that implements the Picasa::Album module.
Instance Method Details
#has_many_picasa_albums(params) ⇒ Object
Method used to tell the gem what is the class that implements the Picasa::Album module.
13 14 15 16 17 18 19 |
# File 'lib/picasa/user.rb', line 13 def has_many_picasa_albums params unless params[:class_name] and params[:class_name].class == String raise Exception, 'You should pass the string of the class name that includes Picasa::Album.' end define_dependent_class_methods :album_class, params[:class_name] end |