Permalink
Browse files

Made predefined_attributes public.

  • Loading branch information...
1 parent 74e1327 commit 55d0476e4c0a608e08f5432712ed7d59e077a3c6 @postmodern committed Jul 16, 2011
Showing with 10 additions and 10 deletions.
  1. +10 −10 lib/dm-is-predefined/is/predefined.rb
@@ -12,6 +12,16 @@ def is_predefined
module ClassMethods
#
+ # All pre-defined resources of the model.
+ #
+ # @return [Hash{Symbol => Hash}]
+ # The Hash of pre-defined resources and their attributes.
+ #
+ def predefined_attributes
+ @predefined_attributes ||= {}
+ end
+
+ #
# Returns the names of the predefined resources.
#
# @return [Array<Symbol>]
@@ -110,16 +120,6 @@ def predefined_resource_with(desired_attributes={})
protected
#
- # All pre-defined resources of the model.
- #
- # @return [Hash{Symbol => Hash}]
- # The Hash of pre-defined resources and their attributes.
- #
- def predefined_attributes
- @predefined_attributes ||= {}
- end
-
- #
# Defines a new pre-defined resource for the model.
#
# @param [Symbol, String] name

0 comments on commit 55d0476

Please sign in to comment.