changed gemspec
This commit is contained in:
parent
cf57348c45
commit
f2cecf3518
|
@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|||
# Capybara has dropped support for Ruby 1.8.7 onwards version 2.0.3
|
||||
s.add_development_dependency 'capybara', '>= 2.0.3'
|
||||
s.add_development_dependency 'rake', '>= 0.9'
|
||||
s.add_development_dependency 'rails', '>= 3.1'
|
||||
s.add_development_dependency 'rails', '3.1.12'
|
||||
s.add_development_dependency 'rdoc', '>= 2.4.2'
|
||||
s.add_development_dependency 'rspec-rails'
|
||||
s.add_development_dependency 'simplecov'
|
||||
|
|
|
@ -11,15 +11,13 @@ module Impressionist
|
|||
|
||||
private
|
||||
|
||||
attr_reader :klass
|
||||
|
||||
def self.should_include?
|
||||
toggle = Impressionist::RailsToggle.new(Rails::VERSION::MAJOR)
|
||||
self.include_attr_accessible unless toggle.valid?
|
||||
end
|
||||
|
||||
def self.include_attr_accessible
|
||||
klass.attr_accessible(:impressionable_type,:impressionable_id,
|
||||
@klass.attr_accessible(:impressionable_type,:impressionable_id,
|
||||
:user_id,:controller_name,:action_name,:view_name,:request_hash,
|
||||
:ip_address,:session_hash,:message,:referrer)
|
||||
|
||||
|
|
Loading…
Reference in New Issue