Permalink
Browse files

Adding attr_accessible to MeritAction. Compliant with new config.acti…

…ve_record.whitelist_attributes=true Rails default.
  • Loading branch information...
1 parent 2d7aff1 commit 4de99c1751987b7404ba8be43d05e48fa4c3539b @tute tute committed Apr 27, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 Gemfile.lock
  2. +2 −0 app/models/merit_action.rb
  3. +1 −1 merit.gemspec
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- merit (0.6.0)
+ merit (0.6.2)
ambry
GEM
@@ -1,6 +1,8 @@
require "merit/models/#{Merit.orm}/merit_action"
class MeritAction
+ attr_accessible :user_id, :action_method, :action_value, :had_errors, :target_model, :target_id, :processed, :log
+
# Check rules defined for a merit_action
def check_rules(defined_rules)
action_name = "#{target_model}\##{action_method}"
View
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
s.description = "Manage badges, points and rankings (reputation) of resources in a Rails application."
s.homepage = "http://github.com/tute/merit"
s.files = `git ls-files`.split("\n").reject{|f| f =~ /^\./ }
- s.version = "0.6.1"
+ s.version = "0.6.2"
s.authors = ["Tute Costa"]
s.email = 'tutecosta@gmail.com'
s.add_dependency 'ambry'

0 comments on commit 4de99c1

Please sign in to comment.