lib/generators/effective/views_generator.rb in effective_developer-0.2.10 vs lib/generators/effective/views_generator.rb in effective_developer-0.2.11
- old
+ new
@@ -36,10 +36,14 @@
end
private
def available_actions
- %w(index new show edit)
+ if defined?(EffectiveResources) # We don't need any views!
+ []
+ else
+ %w(index new show edit)
+ end
end
end
end
end