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