--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Creates a foreign key name from a class name. separate_class_name_and_id_with_underscore 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