Sha256: cb1dcb03f650d239b56347e1e2dba4bfbba90c3ae2798232d60d428e64c91a5b
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
module UsesguidMigrations module ActiveRecordExtensions module Base def self.included( base ) base.extend( ClassMethods ) end module ClassMethods def self.extended( base ) class << base alias_method_chain :abstract_class?, :lfe_usesguid_migrations end end def abstract_class_with_lfe_usesguid_migrations? abstract_class_without_lfe_usesguid_migrations? || !(name =~ /^Abstract/).nil? end def base_class? self == base_class end def pluralized_table_name( table_name ) ActiveRecord::Base.pluralize_table_names ? table_name.to_s.pluralize : table_name end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems