lib/ronin/model.rb in ronin-0.1.1 vs lib/ronin/model.rb in ronin-0.1.2
- old
+ new
@@ -19,12 +19,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#++
#
-require 'ronin/extensions/meta'
-
require 'dm-core'
require 'dm-types'
require 'dm-serializer'
require 'dm-aggregates'
require 'dm-validations'
@@ -39,13 +37,17 @@
def self.included(base)
base.module_eval do
include DataMapper::Resource
include DataMapper::AutoMigrations
+ #
+ # Returns the default repository name for the model.
+ #
def self.default_repository_name
Model::REPOSITORY_NAME
end
+ # The class type property
property :type, Discriminator
end
end
end
end