Sha256: e5234e13520a529e7293dfe24c4987b32c2930f7c6ec1d546d322a1f66225423

Contents?: true

Size: 341 Bytes

Versions: 2

Compression:

Stored size: 341 Bytes

Contents

module RGallery
  class PhotoConfig
    attr_writer :photo_class
    attr_reader :options

    def initialize options = {}    
      options ||= {}
      @options = options
      @photo_class = options[:photo_class] if options[:photo_class]
    end

    protected

    def photo_class
      @photo_class ||= Photos::Photo
    end  
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-gallery-0.2.1 lib/rails-gallery/rgallery/photo_config.rb
rails-gallery-0.2.0 lib/rails-gallery/rgallery/photo_config.rb