Sha256: d28b632ebc5a1278700c596b14526294f6b0917a16eefbdbdef1e3e75caa6899

Contents?: true

Size: 348 Bytes

Versions: 13

Compression:

Stored size: 348 Bytes

Contents

module AvatarsForRails
  module ActiveRecord
    # Adds an ActiveRecord model with support for avatars
    def acts_as_avatarable(options = {})
      options[:styles] ||= AvatarsForRails.avatarable_styles

      cattr_accessor :avatarable_options
      self.avatarable_options = options

      include AvatarsForRails::Avatarable
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
avatars_for_rails-1.1.4 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.1.3 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.1.2 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.1.1 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.1.0 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.0.7 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.0.6 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.0.5 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.0.4 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.0.3 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.0.2 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.0.1 lib/avatars_for_rails/active_record.rb
avatars_for_rails-1.0.0 lib/avatars_for_rails/active_record.rb