Sha256: 927c5103beb3d9465c1243f3c433b78e1fe9e8313b3f4f4706a6bdac4b4006b1

Contents?: true

Size: 580 Bytes

Versions: 28

Compression:

Stored size: 580 Bytes

Contents

module Refinery
  class Activity
  
    attr_accessor :class, :title, :url_prefix, :order, :conditions, :limit, :created_image, :updated_image, :conditions
  
    def initialize(new_options)
      options = {:class => nil, :title => nil, :url_prefix => "", :order => 'updated_at DESC', :conditions => nil, :limit => 10, :created_image => "add.png", :updated_image => "edit.png"}
      options.merge!(new_options).each { |key,value| eval("self.#{key} = value") }
    end
    
    def url_prefix
      @url_prefix.blank? ? "" : "#{@url_prefix}_".gsub("__", "_")
    end
  
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.12 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.11 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.10 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.9 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.8 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.7 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.6 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.5 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.4 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.3 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.2 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5.1 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.5 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.4.5 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.4.4 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.4.3 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.4.2 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.4.1 vendor/plugins/refinery/lib/refinery/activity.rb
refinerycms-0.9.4 vendor/plugins/refinery/lib/refinery/activity.rb