Sha256: 4618c2b462745ead021afb21c3565821d783ead580591ce2130f7af2cae4b907
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Creates a foreign key name from a class name. <tt>separate_class_name_and_id_with_underscore</tt> sets whether the method should put '_' between the name and 'id'. - !ruby/struct:SM::Flow::P body: Examples - !ruby/struct:SM::Flow::VERB body: " "Message".foreign_key #=> "message_id"\n "Message".foreign_key(false) #=> "messageid"\n "Admin::Post".foreign_key #=> "post_id"\n" full_name: String::Style::foreign_key is_singleton: true name: foreign_key params: (class_name, separate_class_name_and_id_with_underscore = true) visibility: public
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.2 | doc/ri/String/Style/foreign_key-c.yaml |
facets-2.4.3 | doc/ri/String/Style/foreign_key-c.yaml |