Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
Made predefined_attributes public.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jul 16, 2011
1 parent 74e1327 commit 55d0476
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/dm-is-predefined/is/predefined.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ def is_predefined
end

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.
#
Expand Down Expand Up @@ -109,16 +119,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.
#
Expand Down

0 comments on commit 55d0476

Please sign in to comment.