Module: ActiveMocker::MockCreator::Attributes
- Included in:
- ClassMethods
- Defined in:
- lib/active_mocker/mock_creator.rb
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
199 200 201 202 203 204 205 |
# File 'lib/active_mocker/mock_creator.rb', line 199 def attributes @attribute ||= begin a = schema_scrapper.attributes.to_a a << primary_key unless a.any? { |aa| aa.name == "id" } a end end |