lookup_ancestors() Instance Public methods When localizing a string, it goes through the lookup returned by this method, which is used in ActiveModel::Name#human, ActiveModel::Errors#full_messages and #human_attribute_name.
attribute_names() Instance Public methods Returns an array of names for the attributes available on this object. class Person < ActiveRecord::Base end person = Person.new person.attribute_names # => ["id", "created_at", "updated_at", "name", "age"]
test_add_github_gem() Instance Public methods
klass() Instance Public methods Returns the class for the macro. composed_of :balance, class_name: 'Money' returns the Money class has_many :clients returns the Client class
empty?() Instance Public methods
present?() Instance Public methods An object is present if it's not blank. @return [true, false]
test_inheritance_new_with_base_class() Instance Public methods
change_table(table_name, options = {}) Instance Public methods
sql_for_insert(sql, pk, id_value, sequence_name, binds) Instance Public methods
font_url(source, options = {}) Instance Public methods Computes the full URL to a font asset. This will use font_path internally, so most of their behaviors will be the same. url_to_font
Page 98 of 2275