Sha256: 1174a1036f75634dd39491a5372405f22685a442720e4b237eae7f6923c416b8

Contents?: true

Size: 292 Bytes

Versions: 43

Compression:

Stored size: 292 Bytes

Contents

ActiveRecord::Base.class_eval do
  def self.hobo_model
    include Hobo::Model
    fields(false) # force hobo_fields to load
  end
  def self.hobo_user_model
    include Hobo::Model
    include Hobo::Model::UserBase
  end
  alias_method :has_hobo_method?, :respond_to_without_attributes?
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
hobo-2.2.6 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.2.5 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.2.4 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.2.3 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.2.2 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.2.1 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.2.0 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.1.2 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.1.1 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.1.0 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.1.0.pre4 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.1.0.pre3 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.1.0.pre2 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.1.0.pre1 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.0.1 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.0.0 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.0.0.pre10 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.0.0.pre9 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-2.0.0.pre8 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.3 lib/hobo/extensions/active_record/hobo_methods.rb