Module: Smartthumbs::ActiceRecord::ClassMethods

Defined in:
lib/smartthumbs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#st_configObject

Returns the value of attribute st_config.



6
7
8
# File 'lib/smartthumbs.rb', line 6

def st_config
  @st_config
end

Instance Method Details

#smartthumbs(opts = {}) ⇒ Object



7
8
9
10
# File 'lib/smartthumbs.rb', line 7

def smartthumbs(opts={})
  self.st_config = opts
  self.send(:include, Smartthumbs::Thumbable)
end