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-1.3.0.RC1 lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.RC lib/hobo/extensions/active_record/hobo_methods.rb
hobo-1.3.0.pre31 lib/hobo/extensions/active_record/hobo_methods.rb