lib/detour/acts_as_flaggable.rb
Method acts_as_flaggable
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def acts_as_flaggable(options = {})
Detour::Feature.class_eval <<-EOF
has_one :#{table_name}_percentage_flag,
class_name: "Detour::PercentageFlag",
inverse_of: :feature,