Module: SocialButtons::ViewHelper

Extended by:
ActiveSupport::Concern
Defined in:
lib/social_buttons/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#widgetized!(name) ⇒ Object



20
21
22
23
# File 'lib/social_buttons/view_helper.rb', line 20

def widgetized! name
  meth = "#{name}_widgetized="
  self.send(meth, name) if respond_to? meth
end

#widgetized?(name) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
28
# File 'lib/social_buttons/view_helper.rb', line 25

def widgetized? name
  meth = "#{name}_widgetized?"
  self.send(meth) if respond_to? meth
end