lib/dm-paperclip/interpolations.rb
# Returns the underscored, pluralized version of the class name.
# e.g. "users" for the User class.
# NOTE: The arguments need to be optional, because some tools fetch
# all class names. Calling #class will return the expected class.
Returns the underscored, pluralized version of the class name.
Returns the underscored pluralized version of the class name .
def class attachment = nil, style_name = nil
      return super() if attachment.nil? && style_name.nil?
      name = DataMapper::Inflector.underscore(attachment.instance.class.to_s)
      DataMapper::Inflector.pluralize(name)
    end
def class attachment = nil , style_name = nil return super ( ) if attachment . nil? && style_name . nil? name = DataMapper :: Inflector . underscore ( attachment . instance . class . to_s ) DataMapper :: Inflector . pluralize ( name ) end
Returns the underscored, pluralized version of the class name.
Returns the underscored pluralized version of the class name .
attachment
<not_specific>
style_name
<not_specific>