Skip to content

0.1.0V

Compare
Choose a tag to compare
@esbanarango esbanarango released this 27 Oct 00:07
· 32 commits to master since this release

Cleaner way to use acts_as_inheritable.

class Person < ActiveRecord::Base

  acts_as_inheritable attributes: %w(favorite_color last_name soccer_team),
                      associations: %w(shoes pictures clan)
end

instead of

class Person < ActiveRecord::Base
  acts_as_inheritable

  # Constants
  INHERITABLE_ATTRIBUTES = %w(favorite_color last_name soccer_team)
  INHERITABLE_ASSOCIATIONS = %w(shoes pictures clan)
end