Sha256: a92d87f2b22b9f04f2565c90529cbdc4cc2c6f4799accdac4779502aee4b0c22
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
module Fuel class Author < ActiveRecord::Base has_many :posts if Rails.version[0].to_i < 4 attr_accessible :first_name, :last_name, :title, :bio, :avatar, :email, :twitter, :github, :dribbble end def full_name [first_name, last_name].compact.join(" ") end has_attached_file :avatar, :styles => { :medium => Fuel.configuration.avatar_settings[:styles][:medium], :thumb => Fuel.configuration.avatar_settings[:styles][:thumb] }, :default_url => "fuel/default-img.jpg" validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fuel-0.3.21 | app/models/fuel/author.rb |