lib/rails_erd/domain/attribute.rb in rails-erd-1.4.4 vs lib/rails_erd/domain/attribute.rb in rails-erd-1.4.5

- old
+ new

@@ -86,9 +86,15 @@ # These attributes are typically named +type+. def inheritance? @model.inheritance_column == name end + # Method allows false to be set as an attributes option when making custom graphs. + # It rejects all attributes when called from Diagram#filtered_attributes method + def false? + false + end + # Returns +true+ if this attribute is one of the standard 'magic' Rails # timestamp columns, being +created_at+, +updated_at+, +created_on+ or # +updated_on+. def timestamp? TIMESTAMP_NAMES.include? name