Sha256: 8140af88c63a42112b4af0345bf454801a9dea1aa11e48f6cc9f01932b48ebd2

Contents?: true

Size: 288 Bytes

Versions: 19

Compression:

Stored size: 288 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::User
  end
  alias_method :has_hobo_method?, :respond_to_without_attributes?
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hobo-1.3.0.pre29 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre28 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre27 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre26 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre25 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre24 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre23 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre22 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre21 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre20 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre19 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre18 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre16 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre15 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre14 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre13 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre12 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre11 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre10 lib/hobo/extensions/active_record/hobo_methods.rb